package net.chrisrichardson.ec2deployer.applications
/**
 * Created by IntelliJ IDEA.
 * User: cer
 * Date: Jan 2, 2008
 * Time: 12:25:33 PM
 * To change this template use File | Settings | File Templates.
 */
class CatalinaOptionsBuilderTest extends GroovyTestCase {

    public void test() {
        CatalinaOptionsBuilder builder = new CatalinaOptionsBuilder()
        builder.arg("-Xmx500m")
        builder.prop("com.sun.management.jmxremote")
        builder.prop("com.sun.management.jmxremote.port", 8091)

        assertEquals " -Xmx500m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8091", builder.options
    }

}